@mixin input($icon) {
    padding-left: 40px; // 提示文字右移
    margin-bottom: 10px;
    border-radius: 0px;

    // 默认 #f3f3f3，现在似乎改不了了
    background-color: red;
    border-bottom: 1px solid rgb(204, 204, 204);

    &::before {
        background-size: 26px;
        background-repeat: no-repeat;
        background-image: url("/common/icon/#{$icon}.png");
    }

    &:focus {
        border-bottom: 1px solid #0cf;
        border-color: #0cf;

        &::before {
            background-image: url("/common/icon/#{$icon}-active.png");
        }
    }
}

.container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;

    // 页边距
    padding: 40px;
}

.input {
    &__wrap {
        display: flex;
        flex-direction: column;
    }

    &__text {
        @include input("person");
    }

    &__password {
        @include input("lock");
    }
}

.login__btn {
    // 布局
    flex-direction: row;
    justify-content: center;

    // 样式
    height: 46px;
    background-color: rgba(92, 189, 228, 1);
    border-radius: 4px;
    margin: 30px 0%;
}

// 微信登录按钮 - 位置
.auth-wechat {
    position: fixed; // 键盘高度会对该布局造成影响
    // top: 90%;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, 0);
}

// 样式
.auth-wechat {
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 42px;
    background-color: rgba(231, 231, 255, 1);
    border: none;
    border-radius: 8px;
}
